package com.heima.utils.common;

/**
 * @Description TODO
 * @Author earl
 * @Data 2024/8/21下午1:15
 * @Version 1.0
 */
public class AdminThreadLoacalUtil {
    private final static ThreadLocal<Integer> LOCAL = new ThreadLocal<>();

    public static void setId(Integer id){
        LOCAL.set(id);
    }


    public static Integer getId(){
        return LOCAL.get();
    }

    public static void remove(){
        LOCAL.remove();
    }
}